PROJECT(liggghts_binary_reader)
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
FIND_PACKAGE(ParaView REQUIRED)
INCLUDE(${PARAVIEW_USE_FILE})
IF(${PARAVIEW_VERSION_FULL} VERSION_GREATER "4.0.1")
    MESSAGE(STATUS "liggghts_binary_reader > 4.0.1")
    ADD_PARAVIEW_PLUGIN(liggghts_binary_reader ${PARAVIEW_VERSION_FULL}
        SERVER_MANAGER_XML liggghts_binary_reader.xml
        SERVER_MANAGER_SOURCES liggghts_binary_reader.cxx
        REQUIRED_ON_SERVER)
ELSE()
    MESSAGE(STATUS "liggghts_binary_reader <= 4.0.1")
    ADD_PARAVIEW_PLUGIN(liggghts_binary_reader ${PARAVIEW_VERSION_FULL}
        SERVER_MANAGER_XML liggghts_binary_reader.xml
        SERVER_MANAGER_SOURCES liggghts_binary_reader.cxx
        GUI_RESOURCE_FILES liggghts_binary_readerGUI.xml)
ENDIF()    
